<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表单元素选择器</title>
    <script src="../../js/jquery.1.8.3.min.js"></script>
    <script>
        $(function () {
           var node1 = $(":button");
            for (var i = 0; i < node1.length; i++) {
                console.log("选择器：" + node1[i].value)
            }

            var node2 = $(":input");
            for (var i = 0; i < node2.length; i++) {
                console.log("input元素选择：" + node2[i].innerHTML)
            }
        })
    </script>
</head>
<body>
    <form>
        <input type="button" value="你敢按吗？"><br>
        <input type="checkbox" value="不敢">不敢<br>
        <input type="file">文件上传<br>
        <input type="hidden">影藏的<br>
        <input type="password">密码<br>
        <input type="radio">单选<br>
        <input type="reset">重置<br>
        <input type="submit">提交<br>
        <input type="tel">电话<br>
        <select>
            <option>请选择</option>
            <option>选择一</option>
            <option>选择二</option>
        </select><br>
        <textarea placeholder="请输入您的简介"></textarea><br>
        <button value="我就是一个按钮">按钮</button>
    </form>
</body>
</html>